package cn.openbiotoken;

public interface AgeEstimation {

    byte MAX_AGE = Byte.MAX_VALUE;

    byte MIN_AGE = 0;

    static byte legalizeAge(final int age) {
        if (age>MAX_AGE) {
            return MAX_AGE;
        }

        if (age<MIN_AGE) {
            return MIN_AGE;
        }

        return (byte)age;
    }

    byte getAge();

    byte getConfidencePercentage();
}
